#pragma once
#include <windows.h>
#include <d3d9.h>

class Device;
class Window
{
private:
	WNDCLASSEX*	m_pWC;
	LPCSTR		m_sName;
	int			m_nWidth, m_nHeight;
	HWND		m_hWnd;
	Device*		m_pD3D9;
public:
	Window(LPCSTR sName, int nWidth, int nHeight);
	~Window();

	void MainLoop();
	void Render();
	static LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
	void ReceiveM( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
};